package com.cn.distributor.service.Impl;


import com.cn.common.result.Result;
import com.cn.distributor.mapper.DistributorMapper;
import com.cn.distributor.service.DistributorService;
import com.cn.distributor.vo.EnterpriseVo;
import com.cn.distributor.vo.PersonalVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("/DistributorService")

public class DistributorServiceImpl implements DistributorService {

    @Autowired
    private DistributorMapper distributorMapper;
    @Override
    public Result enterPriseAdd(EnterpriseVo enterprise) {
        long count = distributorMapper.enterPriseAdd(enterprise);

        return Result.success(count);
    }

    @Override
    public Result personalAdd(PersonalVo personal) {
        long count = distributorMapper.personalAdd(personal);

        return Result.success(count);
    }
}
